export default {
    namespaced: true,
    state: {
       menuData: [],
       menuShow:false,
       flag:false,
       w:250,
    },
    mutations: {
       changeMenuData(state, payload) {
          state.menuData = payload
       },
       isShow(state, payload){
         if(state.flag=!state.flag){
            state.menuShow=payload
            state.w=65
            // state.flag=true
       }else{
         state.menuShow=false
         state.w=250
         // state.flag=false
       }
       }
    },
 }